package com.engr.lyx.blog.client.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @program: blog
 * @description: 文章浏览记录表
 * @author: lyx
 * @create: 2019-05-18
 **/
@Entity
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class ArticleVisitLog implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 文章id
     */
    private Long articleId;

    /**
     * 文章标题
     */
    private Long articleTitle;

    /**
     * 文章简介
     */
    private String brief;

    /**
     * 视频地址
     */
    private String videoUrl;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

}
